import request from '@/utils/request'

// 查询证书管理列表
export function projectList(query) {
  return request({
    url: '/system/project/list',
    method: 'get',
    params: query
  })
}

export function listSelect(query) {
  return request({
    url: '/system/project/listSelect',
    method: 'get',
    params: query
  })
}

// 禁用启用项目 0启用 1禁用
export function effectSupplier(status, projectIds) {
  return request({
    url: '/system/project/' + status + '/' + projectIds,
    method: 'put',
  })
}


// 新增证书管理
export function projectAdd(data) {
  return request({
    url: '/system/project',
    method: 'post',
    data: data
  })
}
export function projectEdit(data) {
  return request({
    url: '/system/project',
    method: 'put',
    data: data
  })
}
export function projectDel(data) {
  return request({
    url: '/system/project/' + data,
    method: 'DELETE',
    data: data
  })
}

export function projectInfo(id) {
  return request({
    url: '/system/project/' + id,
    method: 'get',
    params: id
  })
}
